//
//  BillingPageViewController.swift
//  HuaYun
//
//  Created by enghou on 2018/10/11.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class BillingPageViewController: PagedViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    override func configViewControllers() -> [UIViewController] {
        
        let titlecontent = TitleContentTableViewController()
        
        var contents = [["合同名称":""],["合同编号":""],["K2编号":""],["合同签订金额(元)":""],["合同决算金额(元)":""],["签订日期":""],["客户单位":""],["收入来源":""],["收款方式":""],["首款方式说明":""],["累计开票金额(元)":""],["累计回款金额(元)":""],["合同开始日期":""],["合同结束日期":""]]
        
        titlecontent.source = contents
        
        let billing = TitleContentTableViewController()
        
        contents = [["年初余额(元)":""],["本年开票金额(元)":""],["本年回款金额(元)":""],["期末余额(元)":""],["应收账款比例含税":""],["合同签署情况":""],["提前开票金额(元)":""],["延迟开票金额(元)":""],["具备条件收款":""],["不具备条件收款":""],["逾期未收款金额(元)":""],["未到期质保金额(元)":""]]
        
        billing.source = contents
        
        let tickets = TitleContentTableViewController()
        
        contents = [["开票日期":""],["开票金额":""],["税率":""],["帐龄":""],["收款单位":""],["预计回款日期":""],["是否具备收款条件":""]]
        
        tickets.source = contents
        
        let active = TitleContentTableViewController()
        
        contents = [["催收责任人":""],["三年以上未回款说明":""],["申请核销坏帐金额(元)":""],["申请核销坏帐原因":""],["催收动态":""],["更新日期":""]]
        
        active.source = contents
        
        return [titlecontent,billing,tickets,active]
    }
    
    override func configTitles() -> Array<String> {
        return ["合同信息","应收账款信息","开票明细","应收账款动态"]
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
